package com.haiya.identityaccess.infrastructure.persistence.mybatis.mapper;

import com.haiya.db.mapper.SuperMapper;
import com.haiya.identityaccess.infrastructure.persistence.mybatis.datamodel.DataGroup;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author qiaoguoqiang
 */
@Mapper
public interface GroupMapper  extends SuperMapper<DataGroup> {
    List<DataGroup> allGroups(@Param("tenantId") String tenantId);
    DataGroup groupNamed(@Param("tenantId") String tenantId, @Param("name")  String name);
    void removeNamed(@Param("tenantId") String tenantId, @Param("name")  String name);
}
